const routes = [
    {
      path: '/Toplist',
      name: 'toplist',
      component:()=>import('../components/Toplist.vue'),
      children:[
        {
          path:'/Toplist/Task',
          name:'toplist/task',
          component:()=>import('../components/Task.vue')
        }
      ]
    },
    {
      path:'/add',
      name:'add',
      component:()=>import('../components/add/add.vue')
    },
    {
      path:'/',
      redirect:'/Toplist/Task'
    }
  ]
  export default routes